package com.hrsystem.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hrsystem.entity.SalaryListDetail;
import com.hrsystem.mapper.SalaryListDetailMapper;
import com.hrsystem.service.SalaryListDetailService;
import org.springframework.stereotype.Service;


@Service
public class SalaryListDetailServiceImpl extends ServiceImpl<SalaryListDetailMapper, SalaryListDetail> implements SalaryListDetailService {

    public SalaryListDetail getByFileId(Long fileId) {
        return this.lambdaQuery()
                .eq(SalaryListDetail::getFileId, fileId)
                .one();
    }
}
